package com.flowsoft.domain;

import java.io.Serializable;
import javax.validation.constraints.*;
...

public class WandaUser extends AbstractEntity implements Serializable {
...
	
	@NotNull
	@Size(max = 15, min = 5)
	private String username;
	
	@NotNull
	@Pattern(regexp = "^.*(?=.{6,12})(?=.*[0-9])(?=.*[a-zA-Z]).*$")
	private String password;

	private String firstName;
	private String lastName;
	
	@NotNull
	@Pattern(regexp = "\\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-z]{2,4}\\b")
	private String emailAddress;

...
}